|
2020-2021 Sunseeker Telemetry and Lighting System
|
Go to the source code of this file.
Macros | |
| #define | CS_MCLK_DESIRED_FREQUENCY_IN_KHZ 1000 |
| #define | CS_MCLK_FLLREF_RATIO 30 |
Functions | |
| void | main (void) |
| void | NMI_ISR (void) |
Variables | |
| uint32_t | clockValue = 0 |
| uint16_t | status |
| #define CS_MCLK_DESIRED_FREQUENCY_IN_KHZ 1000 |
Software Trim on 1MHz DCO
Performs proper software trim both from uncalculated trim values and pre-loaded trim values, and then toggles LED2 ACLK, SMCLK, and MCLK are brought out to external pins on the board.
ACLK = REFO = ~32kHz, MCLK = SMCLK = 1MHz
MSP430FR2xx_4xx Board
-----------------
/|\| |
| | |-->ACLK
--|RST |-->MCLK
| |-->SMCLK
| |
| |-->LED2
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 69 of file cs_ex1_DCO1MHzSWTrim.c.
| #define CS_MCLK_FLLREF_RATIO 30 |
Definition at line 76 of file cs_ex1_DCO1MHzSWTrim.c.
| void main | ( | void | ) |
Definition at line 92 of file cs_ex1_DCO1MHzSWTrim.c.
References __delay_cycles(), clockValue, CS_MCLK_DESIRED_FREQUENCY_IN_KHZ, CS_MCLK_FLLREF_RATIO, and param.
| void NMI_ISR | ( | void | ) |
Definition at line 205 of file cs_ex1_DCO1MHzSWTrim.c.
References status.
| uint32_t clockValue = 0 |
Definition at line 83 of file cs_ex1_DCO1MHzSWTrim.c.
Referenced by main().
| uint16_t status |
Definition at line 90 of file cs_ex1_DCO1MHzSWTrim.c.
Referenced by NMI_ISR().